from django.conf.urls import url

from admin.views import *
from rest_api.views import ResetRunningTime, AddSgin

urlpatterns = [
    url(r'^login/$', AdminLogin.as_view()),
    url(r'^getInfoPage/$', GetInfoPage.as_view()),
    url(r'^getAffairsRecordPage/$', GetAffairsRecordPage.as_view()),
    url(r'^getTrainPage/$', GetTrainPage.as_view()),
    url(r'^upTrain/(?P<PK>[0-9]*)/$', UpTrain.as_view()),
    url(r'^downTrain/(?P<PK>[0-9]*)/$', DownTrain.as_view()),
    url(r'^topTrain/(?P<PK>[0-9]*)/$', TopTrain.as_view()),
    url(r'^cancelTopTrain/(?P<PK>[0-9]*)/$', CancelTopTrain.as_view()),
    url(r'^getUserInfoList/$', GetUserInfoList.as_view()),
    url(r'^getUserInfoListBySearch/$', GetUserInfoListBySearch.as_view()),
    url(r'^token/$', GetUploadToken.as_view()),
    url(r'^imagePath/$', GetUploadVideoImage.as_view()),
    url(r'^changePassword/(?P<PK>[0-9]*)/$', AdminChangePassword.as_view()),
    url(r'^forgetPassword/(?P<account>[0-9]*)/$', AdminForgetPassword.as_view()),
    url(r'^getInfoDetail/(?P<PK>[0-9]*)/$', GetInfoDetail.as_view()),
    url(r'^upInfomation/(?P<PK>[0-9]*)/$', UpInfomation.as_view()),
    url(r'^downInfomation/(?P<PK>[0-9]*)/$', DownInfomation.as_view()),
    url(r'^topInfomation/(?P<PK>[0-9]*)/$', TopInfomation.as_view()),
    url(r'^cancelTopInfomation/(?P<PK>[0-9]*)/$', CancelTopInfomation.as_view()),
    url(r'^deleteInfoDetail/(?P<PK>[0-9]*)/$', DeleteInfoDetail.as_view()),
    url(r'^deleteAffairDetail/(?P<PK>[0-9]*)/$', DeleteAffairDetail.as_view()),
    url(r'^getAffairsDetail/(?P<PK>[0-9]*)/$', GetAffairsDetail.as_view()),
    url(r'^postAffairsDetail/(?P<PK>[0-9]*)/$', PostAffairsDetail.as_view()),
    url(r'^increaseThumbsNumber/(?P<PK>[0-9]*)/$', IncreaseThumbsNumber.as_view()),
    url(r'^postTrainDetail/(?P<PK>[0-9]*)/$', PostTrainDetail.as_view()),
    url(r'^getTrainDetail/(?P<PK>[0-9]*)/$', GetTrainDetailAdmin.as_view()),
    url(r'^deleteTrain/(?P<PK>[0-9]*)/$', DeleteTrain.as_view()),
    url(r'^postSaveTraining/$', PostSaveTraining.as_view()),
    url(r'^judgeWarmTrain/$', JudgeWarmTrain.as_view()),
    url(r'^uploadInformation/$', UploadInformation.as_view()),
    url(r'^getUserInfoDetail/(?P<PK>[0-9]*)/$', GetUserInfoDetailAdmin.as_view()),
    url(r'^getUserBodyDataHistory/(?P<PK>[0-9]*)/$', GetUserBodyDataHistoryAdmin.as_view(),
        name='获取用户体脂称使用次数，平均体重和平均体脂'),
    url(r'^updateUserVipInfo/(?P<PK>[0-9]*)/$',UpdateUserVipAdmin.as_view()),
    url(r'^updateUserCertificationInfo/(?P<PK>[0-9]*)/$',UpdateUserCertificationAdmin.as_view()),
    url(r'^getUserCertificationList/$',listUserCertification.as_view()),
    url(r'^getSuggesionRecordList/$',SuggesionList.as_view()),
    url(r'^updateNickName/(?P<PK>[0-9]*)/$',UpdateNickName.as_view()),
    #禁用昵称
    url(r'^postBanName/$', PostBanName.as_view()),
    url(r'^getBanNameList/$', BanNameList.as_view()),
    url(r'^delBanName/(?P<PK>[0-9]*)/$', DelName.as_view()),
    url(r'^postApkVersion/$', PostApkVersion.as_view()),
    url(r'^getApkVersionList/$', GetApkVersionList.as_view()),
    url(r'^delApkVersionList/(?P<PK>[0-9]*)/$', DelApkVersion.as_view()),
    url(r'^upLoadAPK/$', UpLoadAPK.as_view()),
    url(r'^upLoadHandWareFile/$', UpLoadHandWareFile.as_view()),
    url(r'^getHardwareVersionList/$', GetHardwareVersionList.as_view()),
    url(r'^postHardwareVersion/$', PostHardwareVersion.as_view()),
    url(r'^delHardware/(?P<PK>[0-9]*)/$', DelHardwareVersion.as_view()),
    url(r'^userBodyDemendionList/(?P<user_id>[0-9]*)/$', UserBodyDemendionList.as_view()),
    url(r'^updateUserBodyDemendion/(?P<pk>[0-9]*)/$', UpdateUserBodyDemendion.as_view()),
    url(r'^DelUserBodyDemendion/(?P<pk>[0-9]*)/$', DelUserBodyDemendion.as_view()),
    url(r'^postUserBodyDimension/$', PostUserBodyDimension.as_view()),

    #url(r'^batchCreateUser/$',BatchAddUser.as_view()),
    # url(r'^resetRunningTime/$',ResetRunningTime.as_view()),
    # url(r'^addSgin/$',AddSgin.as_view()),
]
